//package com.jml.zlhq.app.ui;
//
//import java.util.HashMap;
//import java.util.Map;
//
//import org.apache.http.Header;
//import org.json.JSONException;
//import org.json.JSONObject;
//
//import android.app.Dialog;
//import android.os.Bundle;
//import android.util.Log;
//import android.view.View;
//import android.widget.AutoCompleteTextView;
//import android.widget.Button;
//import android.widget.EditText;
//import android.widget.ImageView;
//import android.widget.LinearLayout;
//import android.widget.TextView;
//
//import com.jml.zlhq.app.R;
//import com.jml.zlhq.app.URLs;
//import com.jml.zlhq.app.bean.UserEntry;
//import com.jml.zlhq.app.service.HttpService;
//import com.jml.zlhq.app.util.StringUtil;
//import com.jml.zlhq.app.util.UIUtil;
//import com.loopj.android.http.TextHttpResponseHandler;
//
//public class UserTagActivity extends BaseActivity {
//	private EditText input;
//	private Button sub;
//	private TextView msg;
//	private UserEntry user;
//	
//	@Override
//	protected void onCreate(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//		setContentView(R.layout.user_tag_activity);
//		
//		LinearLayout leftLay = (LinearLayout) findViewById(R.id.content_header_left_lay);
//		LinearLayout rightLay = (LinearLayout) findViewById(R.id.content_header_right_lay);
//		leftLay.setOnClickListener(this);
//		rightLay.setOnClickListener(this);
//		AutoCompleteTextView centerEdit = (AutoCompleteTextView) findViewById(R.id.content_header_center_edit);
//		centerEdit.setVisibility(View.GONE);
//		ImageView leftImage = (ImageView) findViewById(R.id.content_header_left_img);
//		leftImage.setImageResource(R.drawable.back_selector);
//		ImageView roghtImage1 = (ImageView) findViewById(R.id.content_header_right_img);
//		roghtImage1.setVisibility(View.GONE);
//		TextView centerText = (TextView) findViewById(R.id.content_header_center_text);
//		centerText.setText("个性签名");
//		TextView rightText = (TextView) findViewById(R.id.content_header_right_text);
//		rightText.setVisibility(View.INVISIBLE);
//		TextView cityChosed = (TextView) findViewById(R.id.content_header_center_text2);
//		cityChosed.setVisibility(View.GONE);
//		
//		user = appContext.getLoginUser();
//		
//		input = (EditText) findViewById(R.id.user_tag_input);
//		sub = (Button) findViewById(R.id.user_tag_sub);
//		msg = (TextView) findViewById(R.id.user_tag_msg);
//		sub.setOnClickListener(this);
//	}
//
//	@Override
//	public void loadData(Map<String, String> param) {}
//
//	@Override
//	public void clearData() {}
//
//	@Override
//	public void onClick(View view) {
//		switch (view.getId()) {
//		case R.id.content_header_left_lay:
//			finish();
//			break;
//		case R.id.user_tag_sub:
//			final String str = input.getText().toString();
//			if(StringUtil.isEmpty(str)){
//				msg.setText("输入为空，留下点什么吧~");
//			}else{
//				Map<String, String> param = new HashMap<String, String>();
//				param.put("value", str);
//				param.put("auth_token", appContext.getLoginUid());
//				final Dialog  mProDialog =  UIUtil.showLoadingDialog(activity, "提交中，请稍后...", false);
//				HttpService.postByText(URLs.USER_INFO_SIGN, param, new TextHttpResponseHandler() {
//					
//					@Override
//					public void onSuccess(int arg0, Header[] arg1, String arg2) {
//						mProDialog.dismiss();
//						Log.i("====", arg2);
//						try {
//							JSONObject json = new JSONObject(arg2);
//							if(json.getInt("status")==0){
//								user.setUserTag(str);
//								appContext.Login(user);
//								WodeFragment.freshPage = true;
//								finish();
//							}
//						} catch (JSONException e) {
//							e.printStackTrace();
//							UIUtil.ToastMessage(appContext, "保存失败");
//						}
//					}
//					
//					@Override
//					public void onFailure(int arg0, Header[] arg1, String arg2, Throwable arg3) {
//						mProDialog.dismiss();
//						UIUtil.ToastMessage(appContext, "保存失败");
//					}
//				} );
//			}
//			break;
//		default:
//			break;
//		}
//	}
//
//}
